package helpers;

/**
 * Abstract data type to hold a tripple of integers
 * @author benjamin
 	This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
public class Tripple {
	int x,y,r;
	
	/**
	 * Default constructor
	 * @param x
	 * @param y
	 * @param r
	 */
	public Tripple(int x, int y, int r){
		this.x = x;
		this.y = y;
		this.r = r;
	}
	/**
	 * Accessor for the first component
	 * @return X
	 */
	public int getX() {
		return x;
	}
	/**
	 * Mutator for the first component
	 * @param x
	 */
	public void setX(int x) {
		this.x = x;
	}
	/**
	 * Accessor for the second component
	 * @return Y
	 */
	public int getY() {
		return y;
	}
	/**
	 * Mutator for the second component
	 * @param y
	 */
	public void setY(int y) {
		this.y = y;
	}
	/**
	 * Accessor for the third component
	 * @return R
	 */
	public int getR() {
		return r;
	}
	/**
	 * Mutator for the third component
	 * @param r
	 */
	public void setR(int r) {
		this.r = r;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString(){
		return x+","+y+","+r;
	}
}
